package cn.edu.xjtu.data_structure.experiment.test;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/12/12 14:29
 */
public class Node {
    private Object element;
    private Node parent;

    public Node(Object element, Node parent) {
        this.element = element;
        this.parent = parent;
    }

    public Node(Object element) {
        this.element = element;
    }

    public Node(Node parent) {
        this.parent = parent;
    }

    public Node() {
    }

    public Object getElement() {
        return element;
    }

    public void setElement(Object element) {
        this.element = element;
    }

    public Node getParent() {
        return parent;
    }

    public void setParent(Node parent) {
        this.parent = parent;
    }
}
